import './public-path'
import React from 'react';
import { createRoot } from 'react-dom/client';
import './index.css';
import App from './App';
import { BrowserRouter } from 'react-router-dom'

const appRoot = createRoot(document.getElementById('root')!)

appRoot.render(
  <React.StrictMode>
    <BrowserRouter basename={(window as any).__MICRO_APP_BASE_ROUTE__ || '/'}>
      <App />
    </BrowserRouter>
  </React.StrictMode>
);
